home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus Special 11 / Amiga Plus 11: Amiga Future.iso / rexx / write_disk.rexx < prev    next >
OS/2 REXX Batch file  |  1997-07-25  |  530b  |  30 lines

  1. /*
  2.  
  3.                         **************************
  4.                         **** xFX ARexx script ****
  5.                         **************************
  6.  
  7.  
  8.                              Write a file-disk
  9. */
  10.  
  11.  
  12. if ~show('P','xFX.1') then do  /* Check if xFX is running */
  13.   say 'xFX not running !'
  14.   exit
  15. end
  16.  
  17. OutDev = ''
  18. InFile = ''
  19.  
  20. say 'Output device:'
  21. parse pull OutDev
  22. if OutDev ~= '' then do
  23.   say 'Input file:'
  24.   parse pull InFile
  25.   if InFile ~= '' then do
  26.     address 'xFX.1' write OutDev InFile
  27.     say 'Done.'
  28.   end
  29. end
  30.